Defining Log Messages for an Activity |
This topic describes the procedure to define log messages for a business process activity. |
|
- Select a starting point and click to open a business process model. The business process model appears in the business process modeler.
- Clickthe Business Logging tab. The Log Message Builder appears with a consolidated view of all activities.
- Select <specific activity> from the drop-downor expand <specific activity> groupbox in the consolidated view. The activity view of events appears for the selected activity.
- Click in the <specific activity> groupbox. An empty grid view with Event, Type, Mode and Message fields appears.
- To define the log message, do all of the following:
- Select required event for the activity from the Event drop-down.
- Select required message severity type for the activity from the Type drop-down. The message severity type can be Debug, Information, Warning, Error, and Fatal. The properties at the Business Process Management Service container takes precedence over the message severity defined here. So, only the level that is given in the Business Process Management Service is used for logging specified in its properties in the Log Settings tab. However, if you want a specific level at this place, do change the log levels at the Business Process Management Service Service also.
- Select required mode for the activity from the Mode drop-down. Mode can be either static or dynamic. If you select mode as 'static', you need to provide a log message if you know the exact parameters of the mode and the same is logged. If you do not know the exact parameter of the mode, itis recommended that you select the mode as 'Read from Message'. When you select the mode as 'Read from Message', you must provide an XPath expression and the value of that XPath expression is then logged.
- Provide required message for the activity in the Message field. It helps the user when a meaningful message is specified based upon the severity type and the mode that you selected.
- Click .
- Publish and execute the business process. The log messages are published to the default central log database.
You have successfully defined log messages for an activity. You can now view the logged messages at the default central log database.